package inputHandlers;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import org.omg.CORBA.portable.Delegate;

import arcturus.GameLogic;

public class keyInputHandler implements KeyListener{

	private GameLogic callback;
	//====================================
	//====================================
	//====================================
	
	
	public keyInputHandler(GameLogic callback){
		
		this.callback = callback;		
	}
	
	//===================================
	private void handleKeyEvent(KeyEvent e){
		System.out.println(e.getKeyCode());
		this.callback.keyEventPreformed(e);		
	}
		
	//====================================
	//====================================
	//====================================
	
	
	//====================================
	//====================================
	//====================================
	@Override
	public void keyPressed(KeyEvent e) {	
		this.handleKeyEvent(e);		
	}
	
	//====================================
	//====================================
	//====================================
	@Override
	public void keyReleased(KeyEvent e) {
		// TODO Auto-generated method stub
		
	}
	//====================================
	//====================================
	//====================================
	@Override
	public void keyTyped(KeyEvent e) {
		// TODO Auto-generated method stub
		
	}
	//====================================
	//====================================
	//====================================
	
}
